package com.pkx.cloud.fse7.dms.operationmark.controller;

import com.pkx.cloud.fse7.dms.operationmark.service.OperationMarkService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class OperationMarkController {
    @Autowired
    private OperationMarkService operationMarkService;

    @ApiOperation("推送数据")
    @GetMapping("/OperationMark")
    public String search(Integer ID){
        if (ID == null){
            ID = 0;
        }
        String search = operationMarkService.search(ID);
        return search;
    }

    @ApiOperation("推送数据删除")
    @GetMapping("/OperationMarkdelete")
    public String delete(int ID) {
        return operationMarkService.delete(ID);
    }
}
